﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PRO_DOCS.BLL.WIN.Templates
{
    public class MasterAppClas
    {
        private DAL.Database.PRO_DOCSDatabaseDataContext _PRO_DOCSDatabaseDataContext;
        /// <summary>
        /// Gets or sets the cargill egypt database data context.
        /// </summary>
        /// <value>The cargill egypt database data context.</value>
        public DAL.Database.PRO_DOCSDatabaseDataContext PRO_DOCSDatabaseDataContext
        {
            get
            {
                _PRO_DOCSDatabaseDataContext = new DAL.Database.PRO_DOCSDatabaseDataContext(Properties.Settings.Default.PRO_DOCSConnectionString); //(_PRO_DOCSDatabaseDataContext == null) ? new DAL.Database.PRO_DOCSDatabaseDataContext() : _PRO_DOCSDatabaseDataContext;
                return _PRO_DOCSDatabaseDataContext;
            }
            set { _PRO_DOCSDatabaseDataContext = value; }
        }
    }
}
